use askama::Template;

#[derive(Template)]
#[template(path = "auth2_templates/login.html")]
pub struct OauthLoginTemplate {
    pub name: String,
    pub icon: String,
}

pub struct App {
    pub(crate) redirect_uri: String,
    pub(crate) client_icon: String,
    pub(crate) client_name: String,
}

#[derive(Template)]
#[template(path = "auth2_templates/applications.html")]
pub struct OauthAppsTemplate {
    pub apps: Vec<App>,
}

#[derive(Template)]
#[template(path = "auth2_templates/application_content.html")]
pub struct AppContentTemplate {
    pub application_url: String,
}